package day2;

import org.omg.PortableInterceptor.INACTIVE;

/**
 * @author oldliu
 * @since 1.0
 */
public class IntTest {
    public static void main(String[] args) {
        String s="345";
        //double v = Double.parseDouble(s);
        int i=Integer.parseInt(s);
        System.out.println(i);
        Integer k=new Integer(s);
        System.out.println(k);
        //自动装箱和拆箱
        Integer h=24;
        int j=k;
        //->String
        String s1 = String.valueOf(j);
        System.out.println(s1);
    }
}
